package com.local.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "integration_")
public class Integration {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "uuid")
    private String uuid;

    @Column(name = "car_no")
    private String carNo;

    @Column(name = "from_park")
    private String fromPark;

    @Column(name = "less_price")
    private Double lessPrice;

    @Column(name = "status")
    private Integer status;

    @Column(name = "time")
    private String time;

    //是否自动扣费   1:自动   0：无
    @Column(name = "attr1")
    private String attr1;

    @Column(name = "attr2")
    private String attr2;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo == null ? null : carNo.trim();
    }

    public String getFromPark() {
        return fromPark;
    }

    public void setFromPark(String fromPark) {
        this.fromPark = fromPark == null ? null : fromPark.trim();
    }

    public Double getLessPrice() {
        return lessPrice;
    }

    public void setLessPrice(Double lessPrice) {
        this.lessPrice = lessPrice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time == null ? null : time.trim();
    }

    public String getAttr1() {
        return attr1;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1 == null ? null : attr1.trim();
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2 == null ? null : attr2.trim();
    }
}